//
//  Product.swift
//  Nahuo
//
//  Created by zang qilong on 2017/5/15.
//  Copyright © 2017年 zang qilong. All rights reserved.
//

import UIKit

enum ProductStatus:String {
    case selling = "1"
    case soldout = "2"
    case deleted = "3"
    
    var status:String {
        get{
            switch self {
            case .selling:
                return "在售"
            case .soldout:
                return "下架"
            case .deleted:
                return "已删除"
            }
        }
    }
}

enum ProductType:String {
    case official = "1"
    case resell = "2"
    
    var localized:String {
        get {
            switch self {
            case .official:
                return "官方"
            case .resell:
                return "转售"
            }
        }
    }
}

class Product: NSObject {
    var id:String!
    var type:String?
    var status:String?
    var code:String!
    var pv:String!
    var name:String!
    
    var imgs:[String]?
    var videos:[String]?
    
    var collectCount:String!
    var retailPrice:String!
    var tradePrice:String!
    var createUser:String?
    var createTime:String!
}
